<template>
  <div class="error-page">
    <el-card class="error-card" shadow="never">
      <div class="error-content">
        <el-icon :size="120" class="error-icon">
          <Warning />
        </el-icon>
        <h1>404</h1>
        <h2>页面不存在</h2>
        <p>抱歉，您访问的页面不存在或已被删除。</p>
        <el-button type="primary" size="large" @click="$router.push('/')">
          返回首页
        </el-button>
      </div>
    </el-card>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
import { Warning } from '@element-plus/icons-vue'

const router = useRouter()
</script>

<style scoped>
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  padding: 20px;
}

.error-card {
  max-width: 500px;
  width: 100%;
}

.error-content {
  text-align: center;
  padding: 40px 20px;
}

.error-icon {
  color: #409eff;
  margin-bottom: 20px;
}

.error-content h1 {
  font-size: 80px;
  color: #409eff;
  margin: 0;
  font-weight: bold;
}

.error-content h2 {
  font-size: 28px;
  color: #333;
  margin: 20px 0;
}

.error-content p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}
</style> 